<?php // no direct access
defined('_JEXEC') or die('Restricted access');
$stop1=min(array($this->total,JRequest::getInt('limit')));
$stop1=ceil($stop1/5);
$i=0;?>
<div class="inner clearfix">

	<?php for ($j = 1; $j <= $stop1; $j++) :
	$stop2=$j*5;?>
	<div class="clearfix blog">
	<?php for (; $i < $stop2; $i++) : ?>

		<div class="blog-item">
		<?php
			$this->item =$this->getItem($i, $this->params);
			echo $this->loadTemplate('item');
		?>
		</div>

	<?php endfor; ?>
	</div>
	<?php endfor; ?>
</div>